package com.job.zhangqiyan;

/**
 * @author zhangqiyan
 * @version 1.0
 * @since 2022-07-05 05:09:07
 */
//冒泡排序降序排列
public class Homework0702 {
    public static void main(String[] args) {
        int[] arr = {45,76,23,90,54,21,11};

        for(int t=0;t<arr.length+1;t++){
            for(int i=t+1;i<arr.length;i++){
                if(arr[t]<arr[i]){
                    int temp=arr[t];
                    arr[t]=arr[i];
                    arr[i]=temp;
                }
            }
        }
        for (int t=0;t<arr.length;t++){
            System.out.print("" +arr[t]+ ",");
        }
    }
}

